import {createRouter, createWebHistory} from 'vue-router';
import {
    keywords,
    description,
} from '/src/config/env';

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {path: '/', name: 'home',meta: {title: '首页',content: {keywords: keywords,description: description}},            component: () => import('/src/pages/home.vue')},
        // {path: '/manage', name: 'manage', meta: {title: '管理'},                                                          component: () => import('/src/pages/manage.vue')},
        {path: '/store', name: 'store', meta: {title: '商店'},                                                            component: () => import('/src/pages/store.vue')},
        // {path: '/help', name: 'help', meta: {title: '手册'},                                                              component: () => import('/src/pages/help.vue')},

        {path: '/user', name: 'user', meta: {title: '个人中心'},                                                            component: () => import('/src/pages/user/home.vue')},
        {path: '/user-edit', name: 'userEdit', meta: {title: '信息变更'},                                                   component: () => import('/src/pages/user/edit.vue')},
        {path: '/user/bind-account', name: 'bindAccount', meta: {title: '绑定账号'},                                        component: () => import('/src/pages/user/bind-account.vue')},
        {path: '/user/bind-phone', name: 'bindPhone', meta: {title: '绑定手机号'},                                           component: () => import('/src/pages/user/bind-phone.vue')},
        {path: '/user/manage-engine', name: 'manageEngine', meta: {title: '引擎管理'},                                      component: () => import('/src/pages/user/manage-engine.vue')},
        {path: '/user/manage-bookmark', name: 'manageBookmark', meta: {title: '书签管理'},                                  component: () => import('/src/pages/user/manage-bookmark.vue')},
        {path: '/user/recommend-engine', name: 'recommendEngine', meta: {title: '引擎推荐'},                                component: () => import('/src/pages/user/recommend-engine.vue')},
        {path: '/user/recommend-website', name: 'recommendWebsite', meta: {title: '网站推荐'},                              component: () => import('/src/pages/user/recommend-website.vue')},
        {path: '/user/article', name: 'userArticle', meta: {title: '用户文章'},                                             component: () => import('/src/pages/user/article.vue')},
    ]
});

export default router;
